from app import create_app, config
from gevent import pywsgi

app = create_app()
app.config.from_object(config)  # 加载配置

if __name__ == '__main__':
    # server = pywsgi.WSGIServer(('0.0.0.0', 5112), app)
    # server.serve_forever()
    app.run(host='0.0.0.0', port=5112)
